Refactor NotificationManager::Notification - #2347
Conversation
|
Build size and comparison to main:
|
|
@mark9064, @NeroBurner Here is refactoring of P.S. InfiniSim doesn't build, because it needs InfiniTimeOrg/InfiniSim#181 |
181276e to
37a9a18
Compare
|
@mark9064 , @NeroBurner I have rebased this PR (and retested services). |
|
@mark9064 , @NeroBurner Could it be possible to merge this PR (and the corresponding InfiniSim PR InfiniTimeOrg/InfiniSim#181 )? |
mark9064
left a comment
There was a problem hiding this comment.
Sorry it's been a while. Check the date on that first comment!
Refactor NotificationManager::Notification to use constructors. This reduces risk of coding errors (incl. buffer overflows) when creating NotificationManager::Notification and copying text to it.
|
@mark9064 Sorry - I had somehow missed your comment about the cast style! Now it should be fixed in both places. |
Refactor NotificationManager::Notification to use constructors. This reduces risk of coding errors (incl. buffer overflows) when creating NotificationManager::Notification and copying text to it.
Additionally fix a latent bug in ImmediateAlertService (include null terminator in the bytes copied and properly set size) using the constructor.
This PR supersedes #2159
This PR needs corresponding refactoring in InfiniSim: InfiniTimeOrg/InfiniSim#181